package com.fulihui.weixinclient.request.order;

import com.fulihui.weixinclient.http.HttpMethodEnum;
import com.fulihui.weixinclient.result.order.RedPackageQueryResult;
import com.fulihui.weixinclient.util.XMLUtil;

/**
 * 
 * @author shangsiming
 * 红包记录查询
 *
 */
public class RedPackageQueryRequest extends OrderWeixinRequest<RedPackageQueryResult>{
    
    
    
    /*商户订单号 */
    private String mch_billno;
    
    /*订单类型  */
    private String bill_type;

    /**
     * 
     */
    private static final long serialVersionUID = -5025696121669146776L;

    @Override
    protected void childParam() {
        
    }

    @Override
    public String service() {
        return "https://api.mch.weixin.qq.com/mmpaymkttransfers/gethbinfo";
    }

    @Override
    public String urlEndStr() {
        return null;
    }

    @Override
    public RedPackageQueryResult parseResult(String respStr) {
        return XMLUtil.parseObject(respStr, RedPackageQueryResult.class);
    }

    @Override
    public HttpMethodEnum httpMethod() {
        return HttpMethodEnum.CERT_SSL_POST;
    }

    @Override
    public String requestData() {
        return XMLUtil.toXMLString(this);
    }

    public String getMch_billno() {
        return mch_billno;
    }

    public void setMch_billno(String mch_billno) {
        this.mch_billno = mch_billno;
    }

    public String getBill_type() {
        return bill_type;
    }

    public void setBill_type(String bill_type) {
        this.bill_type = bill_type;
    }
    
    

}
